//
//  CommodityPayTableViewCell.m
//  cityStar
//
//  Created by Hancong on 14/12/25.
//  Copyright (c) 2014年 tiny. All rights reserved.
//

#import "CommodityPayTableViewCell.h"
#import "UIImageView+WebCache.h"

@implementation CommodityPayTableViewCell

+ (CGFloat)heightOfTableCell
{
    return 72;
}

-(void)configWithCommodity:(BuycartGood *)good
{
    self.labelTitle.text = [NSString stringWithFormat:@"%@",good.goods_name];
    self.labelMoney.text = [NSString stringWithFormat:@"￥%@",good.price];
    self.labelNum.text = [NSString stringWithFormat:@"x%@",good.number];
    [self.imageCommodity sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://api.icszx.com/image/c/id/%@/w/280/h/240/m/0",good.images]] placeholderImage:[UIImage imageNamed:@"购物车列表_img"]];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
